home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
winsock
/
ircii2-6.zip
/
SRC\IRCII-2.6\INCLUDE\TERM.H
< prev
next >
Wrap
C/C++ Source or Header
|
1995-01-03
|
4KB
|
165 lines
/*
* term.h: header file for term.c
*
* Written By Michael Sandrof
*
* Copyright(c) 1990
*
* See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT
*
* @(#)$Id: term.h,v 1.9 1994/08/01 14:27:23 mrg Stab $
*/
#ifndef _TERM_H_
# define _TERM_H_
#ifdef MUNIX
# include <sys/ttold.h>
#endif
#ifdef _Windows
#define CO term_get_columns()
#define LI term_get_rows()
#define term_eight_bit() (1)
#define set_term_eight_bit(x) (0)
#define term_init() (0)
#define term_cont() (0)
#define term_echo(x) (0)
#define term_init() (0)
#define term_putchar(x) (0)
#define term_puts(x, y) (0)
#define term_reset() (0)
#define term_cursor_left() (0)
#define term_cursor_right() (0)
#define term_insert(x) (0)
int term_pause();
#else
extern int term_reset_flag;
extern char *CM,
*DO,
*CE,
*CL,
*CR,
*NL,
*SO,
*SE,
*US,
*UE,
*MD,
*ME,
*BL;
extern int CO,
LI,
SG;
extern void putchar_x();
#define tputs_x(s) (tputs(s, 0, putchar_x))
#define term_underline_on() (tputs_x(US))
#define term_underline_off() (tputs_x(UE))
#define term_standout_on() (tputs_x(SO))
#define term_standout_off() (tputs_x(SE))
#define term_clear_screen() (tputs_x(CL))
#define term_move_cursor(c, r) (tputs_x(tgoto(CM, (c), (r))))
#define term_cr() (tputs_x(CR))
#define term_newline() (tputs_x(NL))
#define term_beep() (tputs_x(BL),fflush(current_screen ? \
current_screen->fpout : stdout))
#define term_bold_on() (tputs_x(MD))
#define term_bold_off() (tputs_x(ME))
extern RETSIGTYPE term_cont();
extern int term_echo();
extern void term_init();
extern int term_resize();
extern void term_pause();
extern void term_putchar();
extern int term_puts();
extern void term_flush();
extern int (*term_scroll)();
extern int (*term_insert)();
extern int (*term_delete)();
extern int (*term_cursor_right)();
extern int (*term_cursor_left)();
extern int (*term_clear_to_eol)();
extern void term_space_erase();
extern void term_reset();
extern void copy_window_size();
extern int term_eight_bit();
extern void set_term_eight_bit __P((int));
#if defined(ISC22) || defined(MUNIX)
/* Structure for terminal special characters */
struct tchars
{
char t_intrc; /* Interrupt */
char t_quitc; /* Quit */
char t_startc; /* Start output */
char t_stopc; /* Stop output */
char t_eofc; /* End-of-file (EOF) */
char t_brkc; /* Input delimiter (like nl) */
}
struct ltchars
{
char t_suspc; /* stop process signal */
char t_dsuspc; /* delayed stop process signal */
char t_rprntc; /* reprint line */
char t_flushc; /* flush output (toggles) */
char t_werasc; /* word erase */
char t_lnextc; /* literal next character */
};
#endif /* ISC22 || MUNIX */
#if defined(_HPUX_SOURCE)
#ifndef _TTY_CHARS_ST_
#define _TTY_CHARS_ST_
/* Structure for terminal special characters */
struct tchars
{
char t_intrc; /* Interrupt */
char t_quitc; /* Quit */
char t_startc; /* Start output */
char t_stopc; /* Stop output */
char t_eofc; /* End-of-file (EOF) */
char t_brkc; /* Input delimiter (like nl) */
};
#endif /* _TTY_CHARS_ST_ */
#ifndef TIOCSETC
# define TIOCSETC _IOW('t', 17, struct tchars) /* set special chars */
#endif /* TIOCSETC */
#ifndef TIOCGETC
# define TIOCGETC _IOR('t', 18, struct tchars) /* get special chars */
#endif /* TIOCGETC */
#ifndef CBREAK
# define CBREAK 0x02 /* Half-cooked mode */
#endif /* CBREAK */
#ifndef SIGWINCH
# define SIGWINCH SIGWINDOW
#endif /* SIGWINCH */
#endif /* _HPUX_SOURCE */
/* well, it works */
#ifdef mips
# define fputc(c,f) write(1,&(c),1)
# define fwrite(buffer,len,cnt,f) write(1,buffer,len)
#endif /*mips*/
#endif _Windows
#endif /* _TERM_H_ */